
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "libpatches.h"
#include "truerand.h"
#include "parser.tab.h"


int main(void) {
	extern FILE *yyin;
	extern counter samples;

	srand(time(0) + getpid());

	startup();

	do {
		yyparse();
	} while (!feof(yyin));

	process(samples);
	free_garbage();

	return 0;
}
